<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<style lang="scss">
/* 全局重置样式 */
html, body, #app {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #1a1a1a;
  background: #f8f9fa;
  line-height: 1.5;
}

/* 主题色变量 */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --success-color: #22c55e;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --background-color: #f8f9fa;
  --surface-color: #ffffff;
  --border-color: #e2e8f0;
  --text-primary: #1a1a1a;
  --text-secondary: #64748b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
  
  &:hover {
    color: var(--primary-hover);
  }
}

ul, ol {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Element UI 主题覆盖 */
.el-button {
  &--primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    
    &:hover {
      background-color: var(--primary-hover) !important;
      border-color: var(--primary-hover) !important;
    }
  }
}

.el-card {
  border: none !important;
  box-shadow: var(--shadow-md) !important;
  border-radius: 8px !important;
}

.el-input__inner {
  border-radius: 6px !important;
}

.el-select .el-input__inner {
  border-radius: 6px !important;
}
</style>
